
import org.newdawn.slick.Animation;
import org.newdawn.slick.Graphics;
import org.newdawn.slick.SlickException;
import org.newdawn.slick.SpriteSheet;

import net.phys2d.raw.Body;
import net.phys2d.raw.StaticBody;
import net.phys2d.raw.shapes.Box;

public class Block {
    public int x,y;
    public Body poly;
    public int tileID;
    public Block(int x, int y, int tileID) throws SlickException
    {
        this.y=y;
        this.x=x;
        this.tileID=tileID;
        poly= new StaticBody("" + tileID, new Box(32,32));
        poly.setPosition(x,y);
    }
    
    public void update(int delta) {
        //fallback.update(delta);
        this.x=(int)poly.getPosition().getX()-25;
        this.y=(int)poly.getPosition().getY()-25;
        //System.out.printf("X=[%d], Y=[%d]\n",x,y);
    }
}
